import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login'
import Main from '@/pages/Main'


//user page
import UserList from '@/pages/user/UserList'
import UserAdd from '@/pages/user/UserAdd'

//test page
import test from '@/pages/test/test'


Vue.use(Router);

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'test',
    //   component: newLogin
    // },
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/main',
      name: 'main',
      component : Main
    },
    {
      path: '/user/list',
      name: 'UserList',
      component : UserList
    },
    {
      path: '/user/add',
      name: 'UserAdd',
      component : UserAdd
    },
    {
      path: '/test/test',
      name: 'test',
      component: test
    }

    // 这是dev

    // 这是master
  ]
})
